<template>
    <van-calendar v-on="$listeners" v-bind="$attrs" ref="calendar">
        <template v-for="(index, name) in $slots" v-slot:[name]>
            <slot :name="name"/>
        </template>
    </van-calendar>
</template>
<script>
export default {
    methods:{
        reset(date){
            this.$refs.calendar.reset(date);
        },
        scrollToDate(date){
            this.$refs.calendar.reset(date);
        }
    }
}
</script>